import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
    name: 'bpmTaskReform',
    pure: false
})
// bool值转换通道
export class BpmTaskPipe implements PipeTransform {
    transform(items: any[], args?: any[]): any[] {
        if (items == null) {
            return null;
        } else {
            return items.filter(item => item.type !== '1');
        }
    }
}
